# -*- coding: utf-8 -*-
from openerp import models, fields,api
import sys
reload(sys)
sys.setdefaultencoding('utf8')


class gmq_bs_index_news(models.Model):
    """
    首页新闻
    """
    _name = 'gmq.bs.index.news'
    _inherit = ['mail.thread']
    _descripton = '首页新闻'
    _rec_name = 'title'

    title = fields.Char(u'新闻标题', required=True)
    head_pic = fields.Binary(u'封面照片(图片大小：375x240)', required=True)
    link = fields.Char(u'自定义链接:(http://***.com)')
    introduce = fields.Text(u'新闻内容')
    zy = fields.Text(u'摘要')


